<template>
	<view style="padding-bottom: 30rpx;">
		<web-view :src="src" v-if="src"></web-view>
		<view class="" v-else v-html="content">

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
				content: ''
			};
		},
		onLoad(e) {
			if (e.fileUrl) {
				this.src = e.fileUrl
			} else {
				this.content = e.content
			}
			if (e.name) {
				uni.setNavigationBarTitle({
					title: e.name
				})
			}

		}
	}
</script>

<style lang="scss">
page{
	font-size: 28rpx !important; 
}
</style>